<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" omit-xml-declaration="yes"/>
	
	<xsl:template match="//root">
		<div>
			<table class="information">
				<thead>
					<tr>
						<th>Domain</th>
						<th>Object Name</th>
					</tr>
				</thead>
				<tbody>
					<xsl:apply-templates select="item"/>
				</tbody>
			</table>
		</div>
	</xsl:template>
	
	<xsl:template match="item">
		<tr>
			<xsl:attribute name="class">
				<xsl:choose>
					<xsl:when test="position() mod 2">odd</xsl:when>
    				<xsl:otherwise>even</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<td><xsl:value-of select="@name"/></td>
			<td><xsl:value-of select="@class"/></td>
		</tr>
	</xsl:template>
	
</xsl:stylesheet>
